extends OptionButton


const list = [] 

func _ready():
	init_data()
	
	for i in range(list.size()):
		add_item(list[i]["label"], i)
	
	select(0)

func init_data():
	for i in range(28):
		var value = "BJ%02d" % (i+1)
		list.append({
			"label": value,
			"value": value,
		})


func select_value(value):
	for i in range(list.size()):
		if list[i]["value"] == value:
			select(i)
			return
	
	


func get_value():
	if selected < 0 || selected > list.size():
		return ""
	else:
		return list[selected]["value"]
